package com.panda.mall.user.account.service;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.panda.mall.common.mallUser.dto.QueryUserDto;
import com.panda.mall.common.mallUser.entity.SystemUser;

import java.util.List;

/**
* @author tucy123
* @description 针对表【system_user(用户表)】的数据库操作Service
* @createDate 2023-06-15 16:38:34
*/
public interface SystemAccountService extends IService<SystemUser> {

    /**
     * 增改商城账户
     * @param systemUser
     * @return
     */
    Boolean saveOrUpdateUser(SystemUser systemUser);

    /**
     * 匹配查询商城账户
     * @return
     */
    Page<SystemUser> queryAllUser(QueryUserDto dto);

    /**
     * 查询商城账户详情
     * @param id
     * @return
     */
    SystemUser queryUserById(Long id);

    /**
     * 删除商城账户
     * @param ids
     * @return
     */
    Boolean deleteUser(List<Long> ids);
}
